
		 **************************************************************
		 **															 **
		 ** Paper: Freedom of Foreign Movement and Human Trafficking **
		 **														     **
		 ** Authors: Sam R. Bell & Richard W. Frank 				 **
		 **															 **
		 ** Date: May 11, 2021										 **
		 **															 **
		 ** Task: Table 1-Main models	    						 **
		 **															 **
		 **************************************************************
		  
								 
		clear
		version 16.1
		set seed 1234

		** Change working directory
		cd "~"
		 
		use "ht_merged.dta"
		merge 1:1 ccode year using "ht_eba_ivs.dta"		
		eststo clear	 
		global IVs "gdp_ln pop_ln" 
		sort ccode year
		tsset ccode year
 
			********************
			*** 1. CIRI, 12km **
			
			probit F.source fm W_fm_con12   $IVs , robust cluster (ccode) 
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store T1_1
			
			*******************************
			** 2. CIRI interaction, 12km **
			
			probit F.source fm W_fm_con12  interact_W_C_f12 $IVs , robust cluster (ccode) 
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store T1_2
 
			********************
 			* 3. , V-DEM 12km **

			probit F.source v2clfmove W_vfomov_con12  $IVs , robust cluster (ccode)
				 		
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store T1_3
			
			********************************
			* 4. W interaction V-DEM 12km **
			
			probit F.source v2clfmove W_vfomov_con12 interact_W_Vf12 $IVs , robust cluster (ccode)
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store T1_4

 
			 esttab T1_1 T1_2 T1_3 T1_4 using "table1.csv", replace ///
					title(Table 1: Trafficking source, probit results) ///
					obslast label se nogaps scalars(N pr2)  star(* 0.05 ** 0.01 *** 0.001)  
					
				 
